import request from '@/utils/request'


// 策略分类树
export function findStrategyTree(data) {
  return request({
    url: '/invest/strategy/findStrategyTree',
    method: 'post',
    data
  })
}

// 模型配置列表展示
export function findPortfolioStrategy(data) {
  return request({
    url: '/invest/strategy/findPortfolioStrategy',
    method: 'post',
    data
  })
}

// 模型配置 提交下一步
export function portfolio(data) {
  return request({
    url: '/invest/strategy/portfolio',
    method: 'post',
    data
  })
}

// 保存策略组合 
export function savePortfolioStrategy(data) {
  return request({
    url: '/invest/strategy/savePortfolioStrategy',
    method: 'post',
    data
  })
}

// 策略组合列表 
export function portfolioList(data) {
  return request({
    url: '/invest/strategy/portfolioList',
    method: 'post',
    data
  })
}

// 方案优化-年化收益波动
export function riskParityPortfolio(data) {
  return request({
    url: '/invest/networth/riskParityPortfolio',
    method: 'post',
    data
  })
}

// 方案优化-均值方差
export function meanCovPortfolio(data) {
  return request({
    url: '/invest/networth/meanCovPortfolio',
    method: 'post',
    data
  })
}

// 方案优化-列表展示
export function getRiskParityPortfolioList(data) {
  return request({
    url: '/invest/networth/getRiskParityPortfolioList',
    method: 'post',
    data
  })
}

// 方案优化-保存按钮
export function getNewNetWorthValue(data) {
  return request({
    url: '/invest/networth/getNewNetWorthValue',
    method: 'post',
    data
  })
}

// 组合列表-组合详情
export function findPortFolioDetial(data) {
  return request({
    url: '/invest/strategy/findPortFolioDetial',
    method: 'post',
    data
  })
}


// 修改投资组合
export function updateStrategyPortfolioById(data) {
  return request({
    url: '/invest/strategy/updateStrategyPortfolioById',
    method: 'post',
    data
  })
}

// 删除投资组合
export function deleteStrategyPortfolioById(data) {
  return request({
    url: '/invest/strategy/deleteStrategyPortfolioById',
    method: 'post',
    data
  })
}

// 组合相关性
export function getCombinationRelevance(data) {
  return request({
    url: '/invest/strategy/getCombinationRelevance',
    method: 'post',
    data
  })
}


// ===========新============



// 投后组合配置功能
export function configInvestComposition(data) {
  return request({
    url: '/invest/manage/configInvestComposition',
    method: 'post',
    data
  })
}

// 删除投后组合功能
export function deleteInvestCompositionNetWorth(data) {
  return request({
    url: '/invest/manage/deleteInvestCompositionNetWorth',
    method: 'post',
    data
  })
}

// 投后组合列表
export function findAllManageCompositions(data) {
  return request({
    url: '/invest/manage/findAllManageCompositions',
    method: 'post',
    data
  })
}

// 组合下属投资
export function queryInvestInfoByPage(data) {
  return request({
    url: '/invest/manage/queryInvestInfoByPage',
    method: 'post',
    data
  })
}

// 组合下拉接口
export function findAllManageClassifys(data) {
  return request({
    url: '/invest/manage/findAllManageClassifys',
    method: 'post',
    data
  })
}

// 组合申购赎回接口
export function warehouseAjustment(data) {
  return request({
    url: '/invest/manage/warehouseAjustment',
    method: 'post',
    data
  })
}



